package com.hbfu.zggdwlzzsx.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hbfu.zggdwlzzsx.entity.Authors;
import com.hbfu.zggdwlzzsx.mapper.AuthorMapper;
import com.hbfu.zggdwlzzsx.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class AuthorServiceImpl extends ServiceImpl<AuthorMapper, Authors> implements AuthorService {
    @Autowired
    private AuthorMapper authorMapper;

    @Override
    public Authors getAuthorDetail(Integer id) {
        return authorMapper.getById(id);
    }

    @Override
    public List<Authors> getAllAuthors() {
        return authorMapper.getAllAuthors();
    }

    // 实现新增方法：添加作者信息

}
